import { ResponseData } from "@one/core";
import axios$ from "../axios.ts";

interface RequestParams {
  /**  */
  deptCode: string;
}

interface Data {
  /** 正外编总人数 */
  zwbCount?: number;
  /** 正外待入职 */
  zwbDairuzhiCount?: number;
  /** 正外离职中 */
  zwbLiZhizhongCount?: number;
  /** 正外编已离职 */
  zwbYiLiZhiCount?: number;
  /** 正外编近三月转正 */
  zwbJinSanYueZhuanZhengCount?: number;
  /** 正外编近三月续签合同 */
  zwbJinSanYueXuQianHeTongCount?: number;
  /** 正外编跨部门调入调出 */
  zwbKuaBuMenDiaoruDiaoChuCount?: number;
  /** 正外编执行预算 */
  zwbZhiXingYuSuanCount?: number;
  /** 正外编总编制数 */
  zwbZongBianZhiCount?: number;
  /** 正外编在职人数 */
  zwbZaiZhiCount?: number;
  /** 正外编入职中 */
  zwbRuZhiZhongCount?: number;
  /** 正外编调入该一级部门人数 */
  zwbYiJiBuMenRenCount?: number;
  /** 正外编调出中人数 */
  zwbTiaoChuZhongCount?: number;
  /** 正外编离职中人数 */
  zwbLiZhiZhongCount?: number;
  /** 正外编已冻结编制数 */
  zwbYingDongJieCount?: number;
  /** 正外编应届生需求数 */
  zwbYingJieSengXuQiuCount?: number;
  /** 正外编剩余社招编制数 */
  zwShengYuSheZhaoBianZhiCount?: number;
  /** 外包总人数 */
  wbZongRenCount?: number;
  /** 外包编制数 */
  wbBianZhiCount?: number;
  /** 外包待入职 */
  wbDaiRuZhiCount?: number;
  /** 外包离职中 */
  wbLiZhiZhongCount?: number;
  /** 外包执行预算 */
  wbZhiXingYuSuanCount?: number;
  /** 关键指标离职率 */
  gjzbLizhiLv?: number;
  /** 关键指标应届生比例 */
  gjzbYingJieShengBiLi?: number;
  /** 关键指标应届生离职率 */
  gjzbYingJieShengLiZhilv?: number;
  /** 关键指标985/211占比 */
  gjzbZhongDianDaxueLv?: number;
  /** 关键指标干部健康度 */
  gjzbGanBuJianKangDu?: number;
}

/**  信息资源页面详情页 */
const webPcHrDepartmentGetResourceDetailsService = <T = ResponseData<Data>>(RequestParams: RequestParams): Promise<T> => {
  return axios$({
    url: "/web/pc/hrDepartment/getResourceDetailsService",
    method: "get",
    params: RequestParams
  });
};

export default webPcHrDepartmentGetResourceDetailsService;
